import {defineStore} from 'pinia';
import {ref} from "vue";


export const useUserStore = defineStore("user",()=>{
    const user = ref({}) //全局可用

    const changeUser = (value)=>{
        user.value = value

    }
    return{
        user,
        changeUser
    }
},{ //持久化
    persist:true
})

